const express = require('express')
const app = express()
const port = 3000
const cors = require('cors')
const bodyParser = require('body-parser')
app.use(cors)

// parse application/x-www-form-urlencoded
app.use(bodyParser.urlencoded({ extended: false })) // 
// parse application/json
app.use(bodyParser.json())

app.listen(port, () => {
  console.log('serve is starting, the port number is ' + port)
})